Skip to content

feat: add Kode-Agent provider support#391

Closed
CrazyBoyM wants to merge 2 commits intoNVIDIA:mainfrom
CrazyBoyM:add-kode-agent-provider
Closed

feat: add Kode-Agent provider support#391
CrazyBoyM wants to merge 2 commits intoNVIDIA:mainfrom
CrazyBoyM:add-kode-agent-provider

Conversation

@CrazyBoyM
Copy link

@CrazyBoyM CrazyBoyM commented Mar 17, 2026

Summary

Add Kode as a first-class provider in OpenShell. Kode is an open-source multi-model AI coding agent supporting both Anthropic and OpenAI APIs through a unified terminal interface.

Related Issue

N/A — new provider integration.

Changes

  • crates/openshell-providers/src/providers/kode.rs: New provider plugin with ANTHROPIC_API_KEY and OPENAI_API_KEY credential discovery
  • crates/openshell-providers/src/providers/mod.rs: Register kode module
  • crates/openshell-providers/src/lib.rs: Register in ProviderRegistry, add normalize_provider_type("kode"), add unit tests
  • crates/openshell-cli/src/main.rs: Add Kode variant to CliProviderType enum
  • crates/openshell-sandbox/testdata/sandbox-policy.yaml: Add kode_agent network policy
  • docs/about/supported-agents.md: Add Kode to supported agents table
  • docs/reference/default-policy.md: Add Kode to default policy compatibility matrix

Companion PR: NVIDIA/OpenShell-Community#43 (base image installation + production policy)

Testing

  • Unit tests added for credential discovery (ANTHROPIC_API_KEY and OPENAI_API_KEY)
  • Unit tests added for normalize_provider_type("kode")
  • mise run pre-commit passes
  • E2E tests (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Add support for Kode (https://github.com/shareAI-lab/Kode-Agent), an
open-source AI-powered terminal assistant for intelligent code
development. Kode is a multi-model coding agent that supports both
Anthropic and OpenAI APIs.

Changes:
- New provider plugin (kode.rs) with ANTHROPIC_API_KEY and
  OPENAI_API_KEY credential discovery
- CLI enum variant for --type kode
- Provider type normalization with aliases: kode, kwa, kd
- Network policy for kode_agent allowing api.anthropic.com and
  api.openai.com access
- Unit tests for credential discovery and alias normalization
- Remove kwa/kd aliases, register only the kode command
- Simplify network policy binaries to kode and node only
- Add Kode to supported-agents and default-policy docs
@github-actions
Copy link

Thank you for your interest in contributing to OpenShell, @CrazyBoyM.

This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer.

To get vouched:

  1. Open a Vouch Request discussion.
  2. Describe what you want to change and why.
  3. Write in your own words — do not have an AI generate the request.
  4. A maintainer will comment /vouch if approved.
  5. Once vouched, open a new PR (preferred) or reopen this one after a few minutes.

See CONTRIBUTING.md for details.

@github-actions
Copy link

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant